package pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class InternalPage extends AnyPage {
	
	@FindBy(xpath = "//div[@id='wrapper']/header/div/nav/ul/li[4]/a")
	public WebElement menuLogOutLink;
	
	@FindBy(xpath = "//div[@id='wrapper']/header/div/nav/ul/li[2]/a")
	public WebElement myprofileLink;
	
	@FindBy(xpath = "//div[@id='wrapper']/header/div/nav/ul/li[3]/a")
	public WebElement userManagmentLink;
	
	@FindBy(id = "content")
	public WebElement idContentForm;
	
	@FindBy(id = "q")
	public WebElement searchForm;
	
	@FindBy(css = "h1")
	public WebElement logo;
	

	public boolean isOnMainPage() {	
		boolean i = searchForm.isDisplayed();
		boolean q = idContentForm.isDisplayed();
		
		if (i == true && q == true) {
			return true;
		} else {
			return false;
		}
					
	}

}
